import request from '@/utils/request'

// 查询在途分货钉钉通知列表
export function listBiWarehouseDingdingBinding(query) {
  return request({
    url: '/productAllocation/BiWarehouseDingdingBinding/list',
    method: 'get',
    params: query
  })
}

// 查询在途分货钉钉通知详细
export function getBiWarehouseDingdingBinding(id) {
  return request({
    url: '/productAllocation/BiWarehouseDingdingBinding/' + id,
    method: 'get'
  })
}

// 新增在途分货钉钉通知
export function addBiWarehouseDingdingBinding(data) {
  return request({
    url: '/productAllocation/BiWarehouseDingdingBinding',
    method: 'post',
    data: data
  })
}
// 新增在途分货钉钉通知
export function update(data) {
  return request({
    url: '/productAllocation/BiWarehouseDingdingBinding/update',
    method: 'post',
    data: data
  })
}
// 修改在途分货钉钉通知
export function updateBiWarehouseDingdingBinding(data) {
  return request({
    url: '/productAllocation/BiWarehouseDingdingBinding',
    method: 'put',
    data: data
  })
}

// 删除在途分货钉钉通知
export function delBiWarehouseDingdingBinding(id) {
  return request({
    url: '/productAllocation/BiWarehouseDingdingBinding/' + id,
    method: 'delete'
  })
}
